import { stringify } from 'qs';
import request from '@/utils/request';

export async function queryVip(params) {
  return request('/member/list', {
    method: 'POST',
    body: {
      ...params
    },
  });
}


export async function removeVip(params) {
  return request(`/member/delete?${stringify(params)}`);
}

export async function batchRemoveVip(params) {
  return request(`/member/batchDeleteMember?${stringify(params, { arrayFormat: 'brackets' })}`);
}


export async function addVip(params) {
  return request('/member/save', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function updateVip(params) {
  return request('/member/update', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

